(function(window,$,undefined){var _block_namespaces_=window._block_namespaces_||(window._block_namespaces_={});var name="PictureAmplification";var _nodeObj={};var PictureAmplification=_block_namespaces_[name]||(_block_namespaces_[name]={});$.extend(PictureAmplification,{"init":init,"module_init":module_init});function init(nodeObj){if(!!!nodeObj)return;$.extend(_nodeObj,nodeObj);var $selector=$("div[data-settingid\x3d"+nodeObj.settingId+"]");if($selector.find(".PictureAmplification .slick").hasClass("slick-initialized"))$selector.find(".PictureAmplification .slick ").slick("unslick"); var slickPic=$selector.find(".PictureAmplification .slick").slick({dots:true,accessibility:false,arrows:false,fade:true});var outwards=$selector.find(".outward");if(outwards.length>0)outwards.remove();for(var i=0;i<$selector.find(" .PictureAmplification .PICbanner .slick-dots li").length;i++){var a=$selector.find(" .PictureAmplification .PICbanner .slick li").eq(i);var srcs=a.find("img").attr("data-original");if(!srcs)return;if(i==0)var imgss="\x3cdiv class\x3d'outward col-xs-4'\x3e\x3cdiv class\x3d'inside border_re' \x3e\x3cimg src\x3d"+ srcs+" /\x3e\x3cdiv\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e";else var imgss="\x3cdiv class\x3d'outward col-xs-4'\x3e\x3cdiv class\x3d'inside'\x3e\x3cimg src\x3d"+srcs+" /\x3e\x3cdiv class\x3d'mongolias'\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e";$selector.find(" .PictureAmplification .smallPic").append(imgss)}$selector.find(" .PictureAmplification .smallPic\x3e.outward\x3ediv").click(function(){if($(window).width()<900){$selector.find(".PictureAmplification .Mongolia").addClass("shows");$("body").css("overflow", "hidden")}$selector.find(" .PictureAmplification .smallPic\x3e.outward\x3ediv").removeClass("border_re");$selector.find(" .PictureAmplification .smallPic\x3e.outward\x3ediv\x3ediv").addClass("mongolias");$(this).addClass("border_re");$(this).children("div").removeClass("mongolias");for(var i=0;i<$selector.find(" .PictureAmplification .smallPic\x3e.outward\x3ediv").length;i++)if($selector.find(" .PictureAmplification .smallPic\x3e.outward\x3ediv").eq(i).hasClass("border_re"))$selector.find(".PictureAmplification .slick").slick("slickGoTo", i)});$selector.find(".PictureAmplification .Mongolia").click(function(){if($(window).width()<900){$selector.find(".PictureAmplification .Mongolia").removeClass("shows");$("body").css("overflow","visible")}});$(".PictureAmplification .slick").on("beforeChange",function(event,slick,currentSlide,nextSlide){console.log("nextSlide",nextSlide);$selector.find(" .PictureAmplification .smallPic\x3e.outward\x3ediv").removeClass("border_re");$selector.find(" .PictureAmplification .smallPic\x3e.outward\x3ediv").eq(nextSlide).addClass("border_re"); $selector.find(" .PictureAmplification .smallPic\x3e.outward\x3ediv\x3ediv").addClass("mongolias");$selector.find(" .PictureAmplification .smallPic\x3e.outward\x3ediv").eq(nextSlide).children("div").removeClass("mongolias")})}function module_init(_nodeObj){init(_nodeObj)}})(window,jQuery);